package com.example.stu1.student.service;

import com.example.stu1.student.dao.StudentMapper;
import com.example.stu1.student.pojo.Student;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class StudentService {
    @Resource
    private StudentMapper mapper;

    public Student query(Integer sno) {
        return mapper.query(sno);
    }

    public void update(Student student) {
        mapper.update(student);
    }
}
